import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPlayerItemHelper } from "./SeqPlayerItemHelper";
import { SEntityId } from "./SEntityId";
type int = number;
//class SPeaceFieldReward
    
    export  class SPeaceFieldReward
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeInt(this.rank);
            SeqPlayerItemHelper.write(arg1, this.playerItems);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.rank = arg1.readInt();
            this.playerItems = SeqPlayerItemHelper.read(arg1);
            return;
        }

        public /* var */entityId: SEntityId;

        public /* var */rank: int;

        public /* var */playerItems: Array<any>;
    }
